<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ include file="include/header.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>武汉市企业专属空间</title>
<link rel="stylesheet" href="css/style.default.css" type="text/css" />
<!-- 
<link rel="stylesheet" href="css/style.navyblue.css" type="text/css" />-->
<script type="text/javascript" src="js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="js/jquery-migrate-1.1.1.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.9.2.min.js"></script>
<script type="text/javascript" src="js/modernizr.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/jquery.cookie.js"></script>
<script type="text/javascript" src="js/custom.js"></script>
<script type="text/javascript">
    jQuery(document).ready(function(){
        
        jQuery('#login').click(function(){
        	var mobile = jQuery('#mobile').val();
            var pwd = jQuery('#pwd').val();
            if(mobile == '' || pwd == '') {
            	jQuery('#msg').html("请输入手机号和密码");
                jQuery('.login-alert').fadeIn();
                return false;
            }
            login(mobile,pwd);
        });
        
    });
    
    function login(mobile,pwd){
    	
    	jQuery("#lean_overlay").show();
    	jQuery.post(
    			"login.html",
    			{
    				mobile : mobile,
    				pwd : pwd,
    				wxuserid : "${wxuserid}"
    			},
    			function(result){
    				jQuery("#lean_overlay").hide();
    				if(result.result == '10000'){
    					//跳转
    					window.location.href = "toSelectBindent.html";
    				}else{
    					jQuery('#msg').html(result.description);
        				jQuery('.login-alert').fadeIn();
        				return;
    				}
    				
    			}
    	);
    }
</script>
</head>
<body class="loginpage">

<div class="loginpanel">
  <div class="loginpanelinner">
    <div class="logo animate0 bounceIn" style="font-weight:bold; color:#FFFFFF">
      <!--
      <h3>武&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;汉&nbsp;&nbsp;&nbsp;&nbsp;工&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;商</h3>
	  -->
	  <h3>企业专属服务空间</h3>
    </div>
    
      <div class="inputwrapper login-alert">
        <div id="msg" class="alert alert-error"></div>
      </div>
      <div class="inputwrapper animate1 bounceIn">
        <input type="text" name="mobile" id="mobile" placeholder="请输入手机号" onchange="jQuery('.login-alert').fadeOut();"/>
      </div>
      <div class="inputwrapper animate2 bounceIn">
        <input type="password" name="pwd" id="pwd" placeholder="请输入密码" onchange="jQuery('.login-alert').fadeOut();"/>
      </div>
      <div class="inputwrapper animate3 bounceIn">
        <button name="login" id="login">登　录</button>
      </div>
      <div class="logo animate0 bounceIn">
        <label>
		<a href="toReguser.html?wxuserid=${wxuserid}" style="color:#FFFFFF">注册新用户</a>　　　　<a href="toForgetpwd.html" style="color:#FFFFFF">忘记密码</a>
		<br/><br/>
		<c:if test="${ua == 'pc' }">
            <!--
        	<a href="tencent://message/?uin=2795971826&amp;Site=业务咨询&amp;Menu=yes"  style="color:#FFFFFF">在线支持QQ：2795971826</a>
            --!>
        </c:if>
        <c:if test="${ua == 'mobile' }">
            <!--
        	<a href="mqqwpa://im/chat?chat_type=wpa&uin=2795971826&version=1&src_type=web&web_src=oicqzone.com"  style="color:#FFFFFF">在线支持QQ：2795971826</a>
            --!>
        </c:if>
		</label>
      </div>
       <div class="logo animate0 bounceIn">
        <label style="color:#FFFFFF">(注册用户数：${reguserCount})</label>
      </div>
	  
  </div>
</div>
<%@ include file="include/footer.jsp"%>
</body>
</html>
